/*
 * Copyright (C) 2015-2017 Alibaba Group Holding Limited
 */

#ifndef OTA_HAL_PARAM_H
#define OTA_HAL_PARAM_H
#include "ota/ota_service.h"

int ota_get_image_size(void);
int ota_is_download_mode(void);
int ota_get_image_version(char* ver);
int ota_update_image_version(char *ver);
unsigned short ota_get_upgrade_flag(void);
int ota_update_upg_flag(unsigned short flag);
int ota_update_image_size(unsigned int size);
int ota_read_parameter(ota_boot_param_t *ota_param);
int ota_update_parameter(ota_boot_param_t *ota_param);
#endif /*OTA_HAL_PARAM_H*/
